package com.yan.thread;

/**
 * @author taoge
 * @Date 2024/8/7 11:23
 * @Description
 */
public class MyThread extends Thread{
    public MyThread() {
    }

    public MyThread(String name) {
        super(name);
    }

    @Override
    public void run(){
        for (int i = 0; i < 10; i++) {
            System.out.println(MyThread.currentThread().getName() + "---" +i);
        }
    }
}
